﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.QLMS.Entity.SystemSetting;
using ZDSoft.QLMS.Entity.CreateRule;

namespace ZDSoft.QLMS.Entity.Rules
{
    [ActiveRecord]
    public class TestPaperRule : EntityBase<TestPaperRule>
    {
        [Property]
        public int Min { get; set; }

        [BelongsTo("PublishManID")]
        public User PublishMan { get; set; }

        [BelongsTo("SetQuestionTaskID")]
        public SetQuestionTask SetQuestionTask { get; set; }

        //试卷考试课程
        [BelongsTo("CourseID")]
        public Course Course { get; set; }

        //试卷总分
        [Property]
        public float Grade { get; set; }

        [Property]
        public bool isPass { get; set; }

        [Property]
        public string AuditOpinion { get; set; } 

        //该试卷规则包含的题型规则
        [HasMany(typeof(TypeRule), ColumnKey = "TestPaperRuleID")]
        public IList<TypeRule> TypeRules { get; set; }
    }
}
